package com.ysd.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.ysd.entity.OrderForm;
import com.ysd.entity.Product;
import com.ysd.entity.User;

public interface OrderFormMapper {
	/**
	 * ��ѯ�û������ж���
	 * @param uid
	 * @return
	 */
	List<OrderForm> getOrderForm(int uid);
	/**
	 * ɾ������
	 * @param orderForm
	 * @return
	 */
	int delectOrderForm(OrderForm orderForm);
	/**
	 * ��ѯ���ж���
	 * @param of
	 * @return
	 */
	int getTiJiao(OrderForm orderForm);
	
	List<OrderForm> getOrder(@Param("of")OrderForm of,@Param("product")Product product,@Param("user")User user);
	
	int getCount(@Param("of")OrderForm of,@Param("product")Product product,@Param("user")User user);

	
	
	List<OrderForm> shiFouFaHuo();
	List<OrderForm> shiFouShouHuo();
	int updateFaHuo(OrderForm orderform);
	
	
	
	
	List<OrderForm> faHuo(int uid);
	List<OrderForm> faHuo1(int uid);
	List<OrderForm> shouHuo(int uid);
	List<OrderForm> shouHuo1(int uid);
	int updateOrderForm(OrderForm of);
	
}
